package orthoplanner.com.google.code.utils;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class ImageFileFilter extends FileFilter {

		@Override
		public boolean accept(File arg0) {
			return arg0.isDirectory()||
				arg0.getName().toLowerCase().endsWith(".gif")
				||arg0.getName().toLowerCase().endsWith(".jpeg")||
				arg0.getName().toLowerCase().endsWith(".jpg");
		}

		@Override
		public String getDescription() {
			return "Image Files";
		}


	}


